<h1>Видео &laquo;{$model->title}&raquo;</h1>
<div class="video-detail">
{if !$model->code}
    {assign var="videoCode" value=VideoFacade::getVideoYoutubeCodeByUrl($model->url)}
{else}
    {assign var="videoCode" value=$model->code}
{/if}
{if $videoCode}
    {yiitube v=$videoCode size='normal'}
{else}
    <img src="/images/video-unavalible.jpg" />
{/if}
<p class="date">Дата: {$model->publish_date|date_format:"%e.%m.%Y %H:%M"}</p>
<div class="title">{$model->title}</div>
<div class="description">{$model->description}</div>
<div class="clear-floating"></div>
{if ($isAuthor == true)}
<a href="/video/delete/{$model->video_id}" class="more">Удалить</a> <a href="/video/update/{$model->video_id}" class="more">Редактировать</a>
{/if}

{commentFlowWidget commentFlowId=$model->comment_flow_id count=5}
</div>